package day07.concurrent04;

public class Demo05 {
    static int x = 0;
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                for(int i = 0;i<100;i++){
                    x++;
                    System.out.println(x);
                }
            }
        }).start();
        new Thread(new Runnable() {
            @Override
            public void run() {
                for(int i = 0;i<100;i++){
                    x++;
                    System.out.println(x);
                }
            }
        }).start();

    }
}
